<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%@ page import="java.util.ArrayList" %>
<%@ page import="org.apache.struts2.ServletActionContext" %>
<%@ include file="/WEB-INF/jsp/template/header.jsp"%>
<%@ include file="/WEB-INF/jsp/template/sidebar.jsp"%>
<%@ include file="/WEB-INF/jsp/template/body_start.jsp"%>

<div>
<center>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<table>
 <tr >
<%
 java.util.ArrayList imgList=(java.util.ArrayList) request.getAttribute("imgList");
 int count=0;
%> 
<td><img src="http://123.49.42.237:80/allimages/<%=(String) ServletActionContext.getRequest().getSession().getAttribute("current_gb_query")%>.jpg" alt="" height="128" width="128"></td>


</tr>
</table>
</center>
<hr>
<center>
<table>
 <tr >
<%

  for(int i=0;i<imgList.size();i++)
  {
   com.table.distance imgDistObj=(com.table.distance)imgList.get(i);
   if(i%5==0){%></tr><tr><% }%>
   
   <td><img src="http://123.49.42.237:80/allimages/<%=imgDistObj.getData_im_id()%>.jpg" alt="<%=imgDistObj.getData_im_id()%>.jpg" height="128" width="128"></td>
  <% System.out.println(imgDistObj.getData_im_id());
  }
%> </tr>
</table>
</center>
 <s:iterator value="imgList" status="idx">
           <tr >
    	    <td><s:property value="#idx.count" /></td>
    		<td align="left" style="padding-left: 3px;"><s:property value="data_im_id" /></td>
    	   </tr>
         </s:iterator>  

 
</div>
<div>
 <span><a href="/cbir/GaborImageRetrieveNextPage.action?pageNo=0">1</a></span><span><a href="/cbir/GaborImageRetrieveNextPage.action?pageNo=1">2</a></span><span><a href="/cbir/GaborImageRetrieveNextPage.action?pageNo=2">3</a></span>
</div>
<%@ include file="/WEB-INF/jsp/template/body_end.jsp"%>
<%@ include file="/WEB-INF/jsp/template/footer.jsp"%>